package com.lmb.mapper;

import com.lmb.bean.Subsidies;
import com.lmb.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SubsidiesDao {

    int add(@Param("subsidy") Subsidies subsidy);

    int del(@Param("id")Integer id);

    int edit(@Param("subsidy") Subsidies subsidy);

    Subsidies one(@Param("id")Integer id);

    List<Subsidies> all(@Param("subsidy") Subsidies subsidy);

    int pageCount(@Param("subsidy") Subsidies subsidy);

    List<Subsidies> page(@Param("page") Page page, @Param("subsidy") Subsidies subsidy);
}
